package com.wizz.trade.template.service.impl;

import com.wizz.trade.template.entity.PCInfo;
import com.wizz.trade.template.mapper.PCInfoMapper;
import com.wizz.trade.template.service.PCInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fyftless
 * @since 2023-04-19 08:04:10
 */
@Service
public class PCInfoServiceImpl extends ServiceImpl<PCInfoMapper, PCInfo> implements PCInfoService {

    @Resource
    private PCInfoMapper pcInfoMapper;

    @Override
    public void insert(PCInfo PCInfo) {
        pcInfoMapper.insert(PCInfo);
    }

    @Override
    public void update(PCInfo PCInfo) {
        pcInfoMapper.updateById(PCInfo);
    }

    @Override
    public void delete(Integer id) {
        pcInfoMapper.deleteById(id);
    }

    @Override
    public PCInfo getOne(Integer id) {
        return pcInfoMapper.selectById(id);
    }
}
